package com.sg.business.model.dataset.project;

import com.sg.business.model.IModelConstants;
import com.sg.business.model.Organization;
import com.sg.business.model.Project;
import com.sg.widgets.commons.dataset.MasterDetailDataSetFactory;

public class OrgFunction extends MasterDetailDataSetFactory {

	public OrgFunction() {
		super(IModelConstants.DB, IModelConstants.C_ORGANIZATION);
	}

	@Override
	protected String getDetailCollectionKey() {
		return Organization.F__ID;
	}

	@Override
	protected Object getMasterValue() {
		return master.getValue(Project.F_FUNCTION_ORGANIZATION);
	}
}
